add some comments and minor cleanup
make center a method of Camera
fix build.sh