add exmples and cmake support