`getposition` method.

**Summary:**
- added`getposition` method.
- added tests for `getposition`.
- updated readme.