Added linear camera code and crushed some bugs.