Added flashing when opening/closing inventory.
Renamed some methods.