fixed purge and debug checks in tasks
updated documentation for switchport module