Completion of rankhospital function

Saving of code and files after completion, testing and submission of the
rankhospital.R function