Modified compiler error reporting and exiting
Grammar clean
Added foreach cycle
Error handling for redeclaring + foreach
Added write_array and modified foreach to use phi