added main.cpp and updated read me