Added demo project modified to somewhat desired behaviour

Demo code somewhat modified, with some new code and blocks commented
out.
Unneccesary code can be removed sometime.