cleaned, comments
fixed bug
added license