borg pdf and trying to write hermgaussfit