Fix a bug with normalize() method whereby we chose first coefficent as normlization constant even if it was zero
Delete traling whitespacE
add test for bug fix