Adding JDG tutorial + code corrections