minor improvements on the code.
added license
added readme
converted to english