update readme an add public set function