Fixed a few return codes
Merge pull request #98 from guidow/tag_api_fixes

Fixed a few return codes