fixed wrong reference bug, fixed some strings, fixed bug about closing program