Fixes immunable flag handling and documentation