fixed some issues, added getter setter and event listener example