Uncommented lines and relations file bug fixed.

Some remaining lines related to the --list option and configuration file variables (like source_grammar, etc.) were left uncommented, leading to some errors. Also, the --relations filename argument was opened as a file instead of just checking for the file existence, which caused an error. Both have been fixed.