added some refs and acks
added davids comments
fixed up some small stuff