Major code cleanup

Cleaned up Instances class
Moved copyTextFileWithVariables functionality to Variables class
Removed unused classes