First version of bootstrapping function.
Minor changes to function names.
Fixing small error in roxygen code.
Roxygenisation.