Add region based friction

Changed input format to accept regions of depth specified friction.
Some more support for file based friction has been added but that
functionality is still missing.