Worked on documentation, fixed some tests, added some tests