You are probably not getting any answers because your question is too broad. We can help with specific questions, but we cannot provide an extensive tutorial on broad concepts. You have asked a very vague question about a complicated area of scripting. If you can be much more specific, you might get some help. If you can provide a code sample that just needs some assistance, that might help. Repeating the same vague question or expecting someone to write a script for you probably will not help.