made the task unavailable after finished a task
fixed random task selection
updated javadoc
made consistent