changed callbacks to use function pointers
updated tests/*manual for new callback struct