added directory state to Study.java

added open() method in Study.java