command line parsing, usage information

I built an ad-hoc command-line parser and added some usage information. I think the logic is all preserved.

I added a command-line option to set the formula, but file.log.pulp will override it.