resolve issue33 - due to incorecctly nested if statment log settings dissapeared when mapping disabled.  have un nested statement and re-indented code.
Merge pull request #34 from rigagoogoo/issue33

resolve issue33 - due to incorecctly nested if statment log settings dis...