Add copyright statement and comments
Add copyright statement and comments
Minor mods and fix commitor.