Comments and docs for PNG encoder, plus some cleanup; some docs for complex numbers