Added support for custom formats with the graphs. Now xformat and yformat takes functions instead of just the format string to allow for more flexibility. Also fix a typo.