check param and throw Exception, modify README.md