STABLE VERSION: It wasnt meant to be an R package, but I forced it into the R package framwork. End of work for the summer