adding rdoc for much of the app

also added auto trimming to editor config

and cleaned logic for validate follow flash message

There are parts that I was unable to document, use sublime global search (ctrl + shift + f) and search for "TODO" to find all of these