init buffer and don't open logfile if there's nothing to log into it
close file is locking fails, fix indentation
fix memory leak that occured in daemon when list of available interfaces was empty, fix debug print
this is version 1.12 beta already
fix for loop bug in rebuild total that appears to have been there since version 1.1, thanks to William Epp for finding this
trailing whitespace cleanup and copyright year update
add tests