Added a few comments warning about freeing malloc'd pointers.

Moved to getopt instead of jankparse.

Cleaned up getopt.