fixing some bad array index references
print_r is for posers
Merge pull request #26 from mrkrstphr/fix-notices

Fix notices