Added the sphinx docs, and made teh BBox code more PEP8 compatible