add newline to match npm i --save semantics
algorithm comment
implement trimNested()
run sync() at the end
Merge pull request #25 from uber/keep-nested

Implement the trimNested() feature