Refactored and updated slot related files

Flagged any non-working functions.
Converted static functions to non-static.