added "completed" boolean to appointments, added option to check them from the index