Added support for multiple types of cabinet.
Added config options for iron nugget and multiple cabinet types.
Moved some stuff to methods.
Updated the way references are set up.