Add layer example. Fix up dimensions.
Fix rounding bug in layout. Fixes Issue #3.