Changed a lot of stuff

Changed main code
Added listener class
Changed Readme