added normalize function, removed bool from second constructor