added SMSB macro and consecutiveZeros()
optimization; tweaks