Completely reweitten makefile, fixed minor bug in boundingBox