Now correctly changes states in congestion control. Timeouts work better.
Removed unnecessary comments to make code more readable.