user/key: closing file after error checking
repository: accepting dashes in repository name

Closes #70