Updated README and added licence.
Splitting out functionality etc etc.