separate class BatCompiler, removed BatMeta, misc changes