throw an error if we cannot determine the latest version
some fixes
some more changes
Merge pull request #1 from Orochimarufan/master

Merging Orochimarufan/master