created main.cpp and updated readme