1. No need to have packagePath & packageContent as global variables
2. ..especially that packagePath is passed as a function parameter (which is to be removed)