Docs in readme. Updated code comments.

Add npm version badge.