added comment.
added more unit tests.