Adding support for calling two files

Fixed the main to match what we need.
Added support for errors in ic.cup.
The code is ready for testing.