removed temp ~ files
reading metadata from tif
mostly complete. needs testing.