First commit

Serious need of a tidy up at the moment.