creates main function and fixes superclass calls and comments