some doc and change to apache licence