restructured everything.

Signed-off-by: Richard Bagshaw <richard@bagshaw.co.uk>