Reorganize selectGasAmount.java and add comments