Updated the timings for SAMSUNG and SAMSUNG2 to be more accurate. Added repeat detection for SAMSUNG protocol. Updated Samsung demo.

I also optimized the performance of the related decode functions and
cleaned up the appearances a bit.