Changed enable and disable functionality

Renamed the close method to disable. Added enable method.