Update ical.php

Documented the ical.php file and added a basic security to prevent your ical from being public all the time.