tweaked RMSE calculations, fixed bug with NaN in certain conditions of RMSE calc