fix documentation and style