Code cleaning.

Ridding the project of unnecessary event listeners and such.