Jenn,
Some of this code is from the old version of WP. I have a tutorial in the Wiki under the WP Hacks section. I suggest trying that out.
By passing parameters with your function call. The parameters have a brief explanation at the bottom of the page. If you don’t understand what they mean or how they work, post back with a description of what you are trying to do and I’m sure we can help you out.