debugging

added print out stuff, changed results formatting a bit, some to make
it easier to read
changed event_code to just the function name (yay python)