Refactored code, and included optoins to sort apps by topic and platform, as well as by agency.