Made gui compatible with Unix. Also fixed while True plotting that caused error