Fixed fileID parsing and improved logging.
Options parsing added.