added javadoc for frame