modyfying cppfile & hfile classes to use methoddeclaration class &
making centralwidget functions more readable