Moved SemGen.java to semgen package.
Moved error functions to new class SemGenError in resource.