Code brush up and added missing license comments to files.