added a footer and some type changes