Added fully functioning state machine. Added functionality for reading incoming files and storing the data onto SDCard when in HIBERNATE mode, and forward data from SDCard to printer when in READY mode.