handle method definitions on multiple lines
reorganize examples
add example to test handling of constructor
add class to parse method definition and unit test
modify to main to use MethodDefinition class (allows use of constructors)
add test cases for failure to handle nested curly braces e.g. for loops, if statements