started on 'Ltotupt'
tidying up and moving funcutons into correct classes