fix pass functions parameters in stack, add configuratin read, start writing debug and monitor scripts