update script to print usage and initial work on silent mode, add preinstall