change signature to allow global options
extract utils
move docs
remove debug
add tests for utils
Merge commit '0bfff9a24019f3fcb7339f38081c3e8f5aa0a5ba'
Merge commit 'ef542d2fc694766bdf6961f052554ebeee00768e'
Merge commit 'dfd9cd86634688a65ccb9bc935d7cc29b7a51dbc'
move utils out
use updated pickLocals
utils flatten/pick on locals and options
linting