I've fixed the important issues for a better ws2p connectivity, the code is close and functional, it only waits for your validations.