add generic main.cpp
initial
add details explanation to README