added check for hg
updated setup