Graphing, envelopes, and argparse additions

Adding simple graphing capability, an enveloping function, and an
argparse (commandline) interface. The graphing and enveloping will be
extracted in the near future and become libraries of their own.