Added javadocs explaining how the drawing process is implemented.