Documentation

Added documentation.

Snuck in better handling of args.