added eventsystem. improved compiler and logger