add main.cpp and python script.

Updated readme.