extended README/fixed demo2.cpp