Add yaml for travis
Updated functions