fix usage of references on functions to avoid special case for void(*)()
throw informative exception on bad port number
fix logfile configuration
Merge pull request #54 from chipdude/master

logging fix, misc tweaks