9th Upload.

Finsh light state control and query function.