Fixed the check for a single input type so that it would correctly handle a single input. Added a switch statement to handle matlab tables.
Merge pull request #1 from rothnic/master

Input type fix and added matlab table type in switch statement.