Remove useless check for file existing.
Turn assert failure into error message.
Make whitespace-clean.
Fix memory leaks.
Fix operation with no command-line argument, only options.