Added plotting and minor fixes to deuflhard