Fixes #14 Properly checks dimensional lengths using ndim.
Fixes #14 amended per comments.
Fixes #14 Amended per comments
Merge pull request #35 from DanielJMaher/cell_boundaries

Fixes #14 Properly checks dimensional lengths using ndim.