Added countInstalled method
Added findPackages method
Throwing exception if fopen fails
Converted InstallCommand and UpdateCommand to use the new GPM class