code consistency and documentation edits