Added optional ball obstacle avoidance via a bool
Fixed project warnings and debug output