adding debug information, fixed and improved logic
test not conclusive, need to change listing methods and errata population method