Bugfix
Useful debugging snippets, disabled.
Merge pull request #124 from sintefmath/jnygaard_AP_fix

Jnygaard ap fix