add -p command-line argument for processing orders.

const-correctness for cfopen