Add footer and fix some formatting problems