added footer and some comments.