Import to github

(Wrote this a little while ago, wasn't on github)