Added syntax checking before code runs

Beta version of syntax checking