fix code and documentation styles