Started implementing an inventory and slot system
Removed some redundant code, some cleaning and added some function descriptions