initial code
Move params to normalize function instead of constructor
updated doc