Add a readme and some type cleanup.