Optimized sockets and added better verb and noun handling
Code refactored