Added first state machine fpr ir protocol v2.
Updated all functions and definitions.
Added config file.