Fixed README and added main.cpp.