Another rewrite....
Fixed getting root package
Fixed method call on installed repository to get packages
Moved package_maps outside of for loop (whoops)
Added some notices when nothing can be done
Added exception handling
Made returns continues so we don't exit out too quick
Removed notices, exception handling, and fixed preg_match()
Removed excess new line
Updated README to reflect previous changes