Editing analysis functions. Attempting to make this work on XPWin32 but
think might have to give up due to memory limitations. Also tidied up
display / plotting.