item and tileentity code cleanup & formatting