documented code bugfixes