Add a function to check for encumbrance in gear slots.
Rewrite code for file_unload function calls.