RMSE and pRMSE error metrics and corresponding plotting code, convenience functions, minor refactoring