cleaned up initialization script and created example submission and R scripts.
fixed bugs in R scripts and made shell script near usable