Implement tree parser
Add help message
modify generated function to take multiple parameters