fix phpcs
fix more formatting
change Messages::print_* to camelcase