added hard option to restart.sh which deletes existing library files