1.add compress and combine feature ; 2.add funds function