adds travis badge
fixes tests
updates func