changed exception type to result in ValueError when given bad access value, changed doc string for better clarity