added local time to log messages
readme updated
option to turn on logging of repeating messages
refactoring
more tests