Added function comments and one test function.