improvements on set_args methods in extension module.
improvements on nreg, timestep in sakura, and extension module interface.