finished package editing

moved some code around to allow for a single instance of the package
editor. also changed for loading packages to make sure that returned
packages arent loaded.