Documentation improvements and strip whitespace on levels