updated and fixed tests, added travis file, changed print to use sys stderr