Table footer goes at end of table

Also fixed bug in ulist handling where an unnecessary class attribute was being introduced.