Fixed bug that caused headache in functions.
Merge pull request #20 from ldecicco-USGS/master

Fixed bug that caused headache in functions.