Added tests, comments, and understandings...