added light sensor functionality
added documentions