update documentation (scala formatting)