Initial commit of code. Probably already complete

Just wanted to get this up on github.