Added ability to specify field direction on cmd line

* Modified 2D Jacobian generation script to make use of this.