Bit of messing about with grabbing class names and superclasses from files. Needs cleanup