Renaming local variable 'window' to 'win' to avoid global/local confusion.
Merge pull request #26 from cschroed-usgs/WATERSMART-185

Renaming local variable 'window' to 'win' to avoid global/local confusion