Removed ':' for empty log message.
Cosmetic fix in logging.
Changed default settings.
Fixed to use int instead of long for state.