Formatting corrections and IDE comments for unused vars
BUGFIXES: some refinement methods returned scalar residuals causing errors, fixed. Some API changes in the MVC adapter were not added everywhere