option to log events to file
added raw event to json event
get rid of large USB class, use plain functions