Completed iteration three

Added basic tests and updated documentation.