updated scripts for local and remote mode. Added sample configuration file