fixed timeout disabling bars. Wrote Javadoc