Added readme and made 3.1 compatible.