fix some typos in the documentation
fix some typos in the documentation
Introduce normalize method and handle zero entries gracefully