Removed all debug code

==> Use -d instead
Did perltidy over the code and changed back to 4 space indents

Did the check about the Perl version to avoid warnings if given and
switch are used.