Added printLogs var and setPrintLogs() func
Added clear() and read() functions