Merge pull request #5 from porjo/porjo

Return Go errors instead of ints
Fix error typo. Add link to Godocs