Use more descriptive names.
Add missing window attributes.
Add use declarations.
Remove array interface to change_window_attributes.
Update documentation.