Fix and improve documentation on attribute access