First working version of the package, with minimal functionality (reml)