mostly cleaned up/commented ItemController

*still* not pretty, but at least it's somewhat readable.