adding jsdocs and doc to readme