Added some specs for layout.checkPosition.
wrote some tests for checkPosition and added some explanatory comments.
Started writing some tests for and refactoring the cell object, considering ways to structure and document this all so it's more self-explanatory.
Rewrote some documentation. Need to rethink some of the tight coupling between layout and cell objects.