Added test for nested usage
Added jsdoc
Extended the README.md