The intial bit of work in dimension stuff

VERY VERY MUCH stuff to come :)