Docs in readme, cleaned code comments.

Add build and npm module badges.
Keep function params same as jsdocs.