added LICENSE & README.md + main.cpp paste errfix