First commit

Some stuff I wrote that will perhaps be used.