Change tempfile location, ref #135
Rename event method names, ref #135
Clean up code style