Added API framework.  Documented argument parsing.