finished parser, created main