Added license info and better comments in files