Added support for multiple input files and optional paragraph breaks.