adds travis badge as some services crap out
adds type safety

thanks @oranj