Adding copyright notices and commenting how it works