Added textarea, fixed socket connection etc