Refactors all classes, hardens code.