Item type

Optimized alot of codes, and added comments!