fix problem with declaration of Rf_fork
new helpers module, fixing bug, other cleanup
typo in doc