Move more methods into the TrVM class
Separated compiler to header file, cleanup API, array