deleted some commentted out code
changed mode from string to global variables - more consistent
added bounding box back in and fixed block error for having one additional position