Change bad habits, protect the earth, help others, pope says in new book