Add some of the fixes proposed by @tonytonov
…But leave out the changes to dataPrep.R, I tempfixed this by adding a global.R to the shiny dir which basically does the same thing as dataPrep.R