It would be really nice to help, but it's tricky to understand your code, because I've a limited understanding of programming. Would it be possible to add comments to your code, so that I could understand what each module does? Thanks.