change error types so they are distinguishable
write a complete example for usage
Merge pull request #3 from daniel-garcia/feature/completeExample

write a complete example for usage
add test case for err values
Merge pull request #2 from daniel-garcia/feature/fixErrorTypes

change error types so they are distinguishable
fix #4