Bug fixes. Normalized inner and cross product.