added handling of comments that start with #
changed configuration handling.
removed warnings.