changing filename of Rsave, adding code to compute frobenius norm of B