Made application easier to run and stop. Closes #29.