Moved functions to class and put descriptions in header file