Added course class, fixed missing PHP tags, added selftest to data classes
Adding forgotten files from previous commit