add profile method for mode switching
update docs
allow collapsing to be configurable. also fix win paths.
redefine ffenc as a function (#235).
tidy up documentation
shorten path name as much as possible.