Wip/p code

Seems like most of the changes come from the fact that all of ace is included in this PR.
Not sure why this is and it's something we have to ask @Warry.
I think it should be possible to remove this once you have seen it, i.e. no need to show it every time one opens the code view. Perhaps we could use local storage for this?