added comments to facility.js