removes potential division by 0 error
adds slider tickmarks. closes #33
abstracts some functions