added inter(section) to sptree, also minor clean up