You have answered my first question in Reply #1.
Now if you answer the other 3 questions we can make some progress.
If you just want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.
...R