Let Logic.addTask throw IOException
Fix javadoc in Logic.java