Added master repository to list of repositories for which commands are executed
Change in script structure - declarations first and then script logic
Added script error handling
Added ordering of repository names grouped by command output