added code for ValidateSamFile.jar, code cleanup
fixed bug where -jar was not included in $program
added getopts arguments bam, mode, java, picard and memory