now works with pandas 0.13. Plotting fixes, new tests