Add a readme and fix a few warnings