added functionality for checking directives
fix typo
add advisory messages