Added Licence, Readme, and example file

Also reorganized some things.