fixed small off by one
rewritten logger, all log calls, moved confguration to tool directory
more configuration options, configuration file