gui fixed and comments added