Upgrading coding quality

Fixed:

- Type annotations in doc comment
- Coding style
- Typo
- Unnecessary require statement