Added license header and some doc.