Made setup file, package file and test file into executables
Changed order to pass in functions so secret is first before instance
Added tests for package