Added basic SEO and tidied up code