Cursory docs added. Test suite fixed up