Code Update

Added Kiosk Mode code
More Comments
Seperated more tasks into functions