Fixes

Hi,

this fixes a few issues, mainly, that it actually *checks* the table that is submitted as a parameter, changes a few white space things.  It's based on the pull request I sent before.

Kind regards,
 Frank.