You will learn a lot more if you sit down and study the code, research what you don't understand. Asking someone else to explain this code is a vague request - what don't you understand about it? If...