enabled file logging, added more comments, sending ascii values in payload field