refactor all of repository class, remove graphing method, add execSync to Command class