fixed error with adding Roger's code to the SrSryrsHub library
tidy up
fixed error introduced by adding Roger's functions