updated the PackViewer program and is now working well, converted the TexturePack class to a singleton to make it easier to re-use in other programs