made Layout a static struct in layout.c, added some convenience getters in layout...