Add BIT_MASK macro and convert vlan bitmasking to it (improves readability)
Update license