Added the Slot implementation, fixing countless of bugs and NPE errors that can occur

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>