Made some huge documentation changes and renamed a few variables.
Merge pull request #1 from chalupaul/master

Doc changes