Travis CI support + other doctest fixes