Introduce header and footer; stylesheets; refactor tests