Added camera controller. Fixed some bugs.