Added comments and configurable IP and port