Introduced header file.
Introduced header file.
Moved to state functions.
Thinking about how to improve the light pulse code.
Refactored to use state functions.