Addressed syntax errors in the example

$ipAddress is now used consistently.
$databaseFile is now used.
print_r requires brackets
Commented out ...
Small style change