I write software management goal is to learn, improve code for yourself, i use the UDF is available on the forum. People can refer to the code below! I'm finishing it! 
This Main: 
 
 
<snip> 
 
A direct rip-off of martins code with all comments removed and an identical DLL