Update comments and code indentation

- Use spaces instead of tabs for space consistency
- Remove unused imports
- Example improvements such as argument parser and file validation