added license
new version
removed dependency on c++11