added footer and include of functions