Write outlet grid cell id in output flat UH file.

Also included some minor clean up and a matplotlib display change.
Add grid cell id to output file.
Currently, this is done by passing a string or character array because of a bug in CDO.
Add ability to shorten flattened UHs based on threshold.
Clean up adjust_fractions, PEP8 complient