Added documentation, cleaned up and stacking plot now works