Finished the parser. Expanded types, so that there is only one event type. You can now read and write from files.