renamed listeners_array to listeners, added get_listeners and unregister methods