fixed include warning for usleep from <unistd.h>
added reading of native function parameters