- Removed debug messages.
- Added helper functions for opening files and getting paths that follow
  symlinks.