Added comments for most of the code.
Added some constants to the render class.