code fixes


git-svn-id: http://es-lab.googlecode.com/svn/trunk@784 aeea10e6-ec39-11de-83d8-6d5adf01d787
dealt with more of Kevin's comments


git-svn-id: http://es-lab.googlecode.com/svn/trunk@785 aeea10e6-ec39-11de-83d8-6d5adf01d787