Refactor dot and test_dot

Details:
- Refactor dot and test_dot
- Small documentation changes