Fixed sign issues with differential code and better examples