added license
updated readme and comments