You could ask this in the Freelancer section if you want someone to help, although they might charge a penny. If you want help fixing on a thread like this and you intend on sharing it, you will probably have better luck posting the code and having people review it, as I would guess a fair number of people willing to help here might not go to the effort to PM you.