changed gui layout and added comments