[update] npmignore

Added .editorconfig
[add] documentation comments

Comments follow Dox's style