Alright, shutter speed. Shutter speed is the time, in seconds, that the shutter stays open allowing light in. In dark conditions, this needs to stay open longer because there is less light for it to absorb. Supposedly, the average person needs the shutter to be 1/60th of a second to be able to hold the camera still and not get bluriness. When you say you used 4 seconds, you would have had to have held the camera 100% still for 4 whole seconds to get a clear picture. Impossible.
Higher ISO speeds make, in lamens terms, the ccd more vulnerable to light. The higher the iso, then, the faster the shutter speed can be. However, ccds are very bad with handling heat, so the longer the shutter speed, the more grainy the image will be. I try and keep my cam at a range of iso 50-200. Also, iso digi-cam terms don't match up with true 35mm terms, so a digicam iso of 100 is more like a film iso 150 or 200. The lower the iso number, the crisper the picture has POTENTIAL of being, assuming you can hold the cam still enough to compensate for the lower shutter speed.
Aperture is primarily used for controling field of depth. It is c ounter intuitive, a lower aperture creates a higher feild of depth, in that a very low value will make almost a whole picture appear charp, whereas a higher one will focus sharply on a specific target and blur the rest, which is a nice technique.
Depending on what you took a picture of, and how blurry it is, it can often be saved. I have and use adobe phoshop elements (can't afford the full photoshop) and if you use the unsharpen mask under filters, you can get good results. Sharpen too much, and you will get a crazy amount of white artifacts. However, for fireworks I doubt it would work well since in my experiance it tends to have issues with sharpening bright lights around dark areas. PM me if you want more info on how to do this, or pm me links to pics and I'll see what I can do.
Oh, one last thing. Not to offend people (I hope anyways, I mainly use a canon S200 myself, sometimes an Olympus c-700), but if you own a cheapie digicam (as in probably the sub retail $300 mark or so) you'll want to turn off any and all sharpening in the camera. The algorithms are so horrid that they will often make pictures look more blurry then they are, and it's much harder to fix that way. You can do all that stuff in your comp anyways
.
Anyways, I'm no expert at all, but if you want some pointers or to see if I think Ican fix a pic, feel free to PM me!