Fixed: Saving of Shell module settings, finally.
Fixed: Better error reporting.
Fixed: Code cleanup.