merged pause button fix
reset comparator.js
readability improvements