General bug fixes and updated documentation
Lots of new tests, and reorganization of test files
Update readme with some API changes