cleaning up code (with master-2.0 stuff)
adding notes to the code
print_addr now takes a length
adding a note
dont let debug override daemonize
cleaning up logging (and logging PID)