added main, edit to tiff_tools