Added better methods for adding properties to classes, as well as new tests.