If you'd like some fancy accordion on your module's output, here is a short recipe:
Make sure that your jquery version is minimum 1.3.+ after the installation. This is required for the jquery_ui 1.7.x in step 2. An easy way to check the jquery version is to visit the drupal status report page under /admin/reports/status
2. Download jquery_ui.
Install it according to the instructions in the documentation.