Code inspection and cleanup