Fixed bug in normalizing quaternions as well as some typos