Added bit manipulations. Removed some dead code, but there's still a *LOT* simply because all expanded macros are never used. This makes debugging hard. :/