Implemented the basic state machine framework and added some variables/"EQU" statements
Fixed some stuff up so it will build properly