Update Study.java

added minor bug fix and quality of life changes