Added return statement to getTableOfFeatures.
Uppercasing works minus a bug with the first letter