Changes made

Changes made as recommended in thread in Dream In Code
http://www.dreamincode.net/forums/topic/345211-audit-my-code-please/