J.W. added test cases for most parser combinations, and helper functions. Also stacked the end brackets as told in tutorial.