* Use a logger for debug output
* Use gettimeofday to get the useconds part; less ugly
* Cruft cleanup