Moved many methods from dnaeditor.py to main.py and made appropriate changes.