Converts specflags to bitfield

Self-explanatory.
Removes commented out section

To minimize clutter in the code.