specifically the part about saving memory by saving things as bits. I pretty much copied the code only changing the numbers to suit my needs but i am getting this error.
'B00001100000110000' was not declared in this scope
which highlights the last line of this code block.
All B... are Arduino specifically defined constants (in binary.h) You used one which is not defined.
You can use hexadecimal (0x...) representation it is the same.
Binary constants are not 'supported' in C/C++ by default, only decimal, octal (0...), and hexadecimal (0x...). But can be defined by user, of course. You want to use 32bit binary but to make it universal, means that each value should be defined somewhere. It is pretty much for definition. Look at the binary.h how about just 8bit.