Better docs, updated code comments.

Add npm version badge.