fix compile warnings & update readme