Added commenting to class.h

As class.h is understandably hard to grasp for newbies, commenting has been added.