Fixed test script.
Publication structure completely rewritten.

Bump #5.
Added tests of the Publication structure.

Bump #11.