add sample codes,license to readme