fix remarks (2)

- report dependency data structure in error message
- fix indent bug
- don't use '\n'.join([...])
- style fixes