updated readme with travis
extracted some methods