Fix spacing issue and readability of base files.
- Refactored the `.walkSync()` method to handle errors more gracefully and be more readable.
- Fixed spacing inconsistencies.
- Single statement-if statements should be on a single line, for clarity sakes.
even more readability