added some simple plotting of h/X. Requires matplotlib to be installed.