First commit. Lots of comments are wrong but everything seems to be un-broken.