added wide and narrow layouts, footer, tidied up haml files