Added more logging code
Added NPN_TRACE macro