Cleaned up API, Removed required reference to Mongoose. Added more tests.