* Added a unit test * Fixed const correctness of function arguments * Added return values for all functions