even more stupid bug fixes
mild extension
speed optimizations of norm() function after profiling