fixed codeGen to work on multiple classes. fixed small bug for reachability check. fixed bug on codeGen util functions. Cleaned up code in classNode