edit the main project

edit .h .cpp and an example