Moved everything to Main. Can be moved later.

For the moment, there is no use for the listenerClass. Feel free to
delete it, for now