added user interaction. currently a very dirty hack, therefore it's not merged into master yet.
more user input capability
some code changes mostly related to style and C++11
changed memory management and simplified some loops
more simplification
added script to build under linux.