fix bug and clean up jacobi examples