fixed bug on the nextExample button. All examples should be shown up to
the limit set by the user. Default limit is 2147483647

Updated the setting class to save user's setting in the persistent
folder