fixed notification errors for unset index variables
new code for stats generation
Moving the php stats code to the new dnet40 branch