Added python distutils setup file
some test cases for module protocol
Slight updates to README
added function description, code style fix