Added ability to pass in an initialization object that allows a cwd to be specified.

Added ability to pass in an initialization object that allows a cwd to be specified.

Small updates to the api docs in the readme.