Fix compilation by using correct type name "bool" instead of "boolean".
Improve informational content of messages about the P2 problem.
Add --no-warn flag to disable warning message for automation purposes.