added main.cpp, entry.cpp, entry.h