Refactored to return Repo object - fixes #9
Merge pull request #10 from sedsimon/issues/apiRefactor/8

Refactored to return Repo object - fixes #9