new config parameters
improved logging and organization
improved logging and organization. NS logging support.
NS logging
comment debug code