add norm_1, generic norm, fix minor bugs