change findstring code
added flash_image and updated README.md
add preinstall functionality
add functionality for preinstall