Cleaned up server code and added new constructor to text box.