Add some new fields and use bit fields for some attributes

@kevinkreiser @dgearhart @gknisely