Fix deprecation warnings
Merge pull request #3 from mcanevet/fix/deprecated

Fix deprecation warnings
Fix some syntax errors in documentation.
Bump version to 0.2.1