Update localStudy.java

updated study with serialization of the study object