Initial commit. Pretty much the final version.