added usage section
fixed imports v. depends issues
changed where variables and functions are defined to fix scoping issues with multiple shiny app users; added variables for checking if we're on RStudio server
merging with command line functions