- fixed primalN1 global
- some formatting during debugging
- result images still incorrect