add checks for argument to be a Repo
add method to get entry size
fix read version spec to use binary reading