Updated travis YML and fixed small problems in two examples