bugfix bad variable in for loop
removing debugging comments
bugfix markdown output for probably included resources