Fixing bugs. Adding the license file
Upd LICENSE.