[13] added licence header to index and main, matched licence in twodla