Initial code commit.

Everything works on my box but this could use some code cleanup.