Major revision, changes to many routines and new additions. Will be the basis for version 1.0. Includes also the tar.gz file suitable for loading as a package in RStudio.