Fix EditItem and code audit

- ran CodePro from the syllabus. It's like lint, but a better sweep for
things we're supposed to get graded on (Though I Doubt Evan will be
hardcore). Made some of the recommended changes. Also fixed edit item so
it edited instead of deleted/remade the item and stopped NPE exception
that was caused by all that after editing an item.