implemented allocation and storage of plane and cleaned up a little around sphere