Implemented light sensor and changed listeners to annonymous inner types