Added some doc, and refactored the tests a bit