Detailed vector and camera tests added.
More refactoring.
Minor refactoring.