Fix bugs.

Work around crash when no file is provided.
Remove debugging statement.