Fixed bug in H1 norm, as well as error message for L1 norm.