added debug function to enable simpler debugging in the future, replaced multiline comments with proper comment-marker for more readability