I-Kang editing the code, adding comments, 4/21/14