organized example footers and cleaned up main()
updated TODO, fn-algorithms and made outputfooter()

outputfooter() is first test of outputing read footer.