Refactored web tcp into separate files
Small refactors