added comments, renamed methods
added test for CheckSuccess