Enhanced and moved documentation from .js to readme.md