few more comments
added a test function