Added comments and test cases/

refactored some of our code.