Auto mode Light logic added, added main again.

Aapje.