added documentation, tested publication