Final version of algorithm. Added javadoc to PainterlyRendering.java.