added netid for events, added timestamps for events, some small refactoring, added linux cross compilability