Lots of reorganizing of code! Added devAlert when on twdev.herokuapp.com