Config update: pidFile, crash and logFile storage now can be configured
readme update
small changes in gateway
code minimize