Added layout and extrude options.

The layout stuff is based on @andsynchrony's fork which I updated and added stuff to.