Fix journal list function.
Fix warnings. Tests still fail, but -Wall is shut up now.
Merge branch 'feature/list' into develop