Added htmlWrite() and function to check Study Room Availability