Reformatted code, added footer and sectionss