Refactored a retarded boolean return
Refactored accessing namespace tswcalc.slots with a slotObj variable,
instead of calling tswcalc.slots[slotId] all the time.
Changes wtype to none in the reset function
Changes name to capital(wtype) if wtype is not none