Add license header and minor comments.