added check for started
Merge branch 'master' of https://github.com/tianyuzhang/cs454a3
fixed memory leaks
Merge branch 'master' of https://github.com/tianyuzhang/cs454a3