Added mock objects, tests and updated documentation.