Fixed "--config" command-line flag and added documentation.