Added exit with error on unstaged changes, added untracked change check.