fixed bugs and changed host name for SGE
more bug fixes
merged Adam's bug fixes in to this branch
merged Adam's bug fixes in to this branch