Fix #4: Reformat code based on coding conventions

- Optimize imports
- Reformat code based on coding conventions.