Removed a useless comment
Moved responsibility for type IDs to items.js
Added .gitignore with rule for .swp files.
Cleaned up efficiency calculation and removed unused variable.