Code cleanup & Formatting

- removed debug 'printf' commands for when file or dir is not found
- simplified directory changes to single line
- fixed small formatting issues