tested basic input. cleaned up unused codes in GUI