Fixed issue with order of magnitude and 000 sets

Added lookAhead function to check for 000 sets. Added qunit test. Fixed
#1