Update README, comments and license

Update the README file, add comment to source file and add the license
file.