Fixed an issue with camera switching.

Also added vector getters and setters for transform, and some cleaning.