refactored whitespace processing. still needs docs
refactored whitespace processing. still needs docs
use early return instead of falg
more function split refactoring