Updated to v2.0

Made methods async.
Refactored tests.
Improved overall code quality.