Added pendingupdate switch, Fixed IndexOf Missing

Added pendingupdate switch so that you can get a list of only updates avail, Fixed "Method invocation failed because [System.Object[]] doesn't contain a method named 'Indexof'" problem caused by collections not having an indexer.