Initial commit of R code and documentation for m4fe