added flag to listAvailable() function to allow for the exclusion of deleted courses.