Added some comments and moved renamed some public variables so they show up better in visual studio