State machine diagram
Restructured latex files and finished state machine diagram
Merge