Refactor system checks, check tcp_tw_reuse, add documentation