Fixed rounding issues and added clear button to GUI