Refactored and documented ACL's framework.