Update Server and UI scripts

adding comments