Changed constructor names and created longpoll class