integrated chris code. Added the persisted timeout.

should add the logic for congestion window and threshold