Improve expediente number parsing, take input filename from command line parameter