Addition of some tests, and documentation updates