add readme and a couple of fixes too