added file type to ORM
made the serializer capable of handling events
removed newline, formatting only