added instance variables and javadoc for those