Significant refactoring of drawing in ofApp

Other small corrections (bug fix), added some credits.