Corrected reference issues in TSPackage and added to Makefile