Lots of changes

Added a webConfig varible and a createRnRObject function.