More Cleaning

Added comments and included an error check for repository
Merge branch 'master' of https://github.com/9124SAVOIAD/SimSys