Basic layouts

Various problems, much work needed.