Would like to make one comment... haven't read the code just kind of scimmed along. My advise is that the add() command should be gotten rid of... add() is ugly. Just my advise.
__________________
Anything that is done can only be done better by urself - since life is a opinion make it the way urs feel its best