Refactored code
Fixed typo
Merge pull request #81 from sylvaindeloux/refactor_code

Refactored code
Fixed return value
Merge pull request #83 from sylvaindeloux/refactor_code

Fixed return value
Added unit test to check for returned value on create