check for parents and max occurrences of commands, filter out empty lines and comments. Set up evaluators for commands