Reduced buffer size, introduced logger that records inbound/outbound timestamps,other minor changes