changed chathandler to logentryhandler. its more modular now.
removed an unnecessary method
added default config and config based parameters