GUI added and fixed random sting bugs