Added function documentation to close button and library conflicts