Refactored and added comments to help explain BSP trees