changes

made consistent to original simulation http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1921.0