completely tested
adding jsdocs, example and documentation in readme