Implements custom procs for extra validation. Refs #7.

Also changes quit_or_raise to raise_or_quit to avoid naming confusion.
Adds template for easy creation of parameters. Refs #7.
Adds tests for custom callbacks, adds some docs. Refs #7.
Tries to make docstrings work, without success.