Add 'room' method to device

This adds the 'room' method to device as well as some other formatting and adding config for rubocop.