Atomic attributes

Adds support for atomically updating an attribute

Also changed some things that my linter picked up on.