Rearranged requirements and fixed travis ci config file.