fixed error checking and type checker. Need to fix float allocation for for loops?