Add footer and fix some little bugs