Added statistic writer/reader, refactored method writing processor to standard output