added module docs and unit tests for it