Split scripts into partial class.
Refactored and added unique namespaces.
More refactoring. Optimised with checksums.
Refactored to remove obsolete code.