Add table footer and fix some right-align problems

Hi - I needed this functionality but I didn't really understand the internals, so I draw your attention to the magic "(72/25.6)" on line 123 which you will want to replace with something "proper".

Also I added the footer parameter before the end of the parameter list to table() which you may take issue with (but I thought it was better to leave the options object at the end).