Initial commit of Gary's pit code. Should run with latest version of processing.