Complete project. Added all function calls to test code.