Improve simulator

change range of simulator
misc stack logging and timing