Some berggren cleanup.
Made Hamiltonian complex.
Added contour calculations.