did a lot of random rubbish

Reorganised packages, separated graphics from code and a lot of other
stuff which i'm too lazy to mention.