fixed minor syntactical errors.  Kathryn's code was very well ported, these are just some minor changes to allow it to compile