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.