added license to files
fixed comments