fix Makefile to put only directories in -I
add first test for initialization
introduce module state initialized