update README
formating code and fix small errors, bump version to 1.2.2