fix comparator
move creation of event listeners and make mouse ups auto destroying
add destroy functionality to outputs and inputs