Added more features and checks

Things added:
 - Options parser
 - Check if repo is_bare
Expand ~ to user