Add license information and more comments