made repository into a loadable R package...still needs dependencies and imports sorted out