Added editor code
Merge pull request #8 from AlasdairSwan/master

Added editor code