Finished implementing variables improved error reporting