Added some comments and did a bit of clean up. Still need to add control
over dimensions.