Comments and delete some debug code in devices(),links() and ports() functions