refactored to write IO log file for debugging
Change filename of received gcodes to incl. datetime