Updated Javadoc and removed sleep