Refactored hxlnorm and added first unit test.
Added more unit tests for hxlnorm