Added file reader and restructured events system.