Added cube, fixed some bugs, tweaked locations

Right now it does not handle (assertion failure)
   planes being parallel. So I made the planes not be
   parallel.