Fixed up the docs a little bit. Added more tests. Fixed some return type bugs. Testing on build server.