Refactor the code:
- Move API class in a separate file
- Autotests for API class
- Update version to 0.6.1
- RSpec remove deprecated usage of expect {}.not_to raise_error(...)