Updated tag lookup command to work on local and remote repos, fixed comments and updated error messages