updates to parser, now pulling out enums and function definitions