slightly optimized exception handling and added some Javadoc to the todo controller