fixed wrapper bug, updated f77 prototypes