Code clean up, scale function works and camera position bug solved