refactored handling of data and started drawing the summary view. Hmmm, co-ordinates aren't right yet….