add profile method for mode switching
update docs
allow collapsing to be configurable. also fix win paths.