Moved files to example app; moved listeners to top level