Added Time Permits. Java Code works with Time Permits
updated docs
updated docs