added gitignore for tmp directory
some cleanup added to script