moving execSync from dev dependency to dependency
minor code refactoring, made notes in comments