added some functions to camera, fixed a few minor bugs