Make all functions, which can fail, return nil on fail
Add travis config