Added pause function, UI improvements, bugfixes