Code compiles and successfully runs Joost's particle coupling script, needs much cleaning still.