a lot of minor changes...representation of quaternions where not consistent.