added methods necessary to normalize vectors to unit length
minor formatting change
add vector normalizing to unit length