Merge pull request #39 from roydude/v1-train

Stop deleteThreads() from trying if there are no threads.
Changed UTILS.viewAllIframes() to be more effective (the original is just commented out for now in case I need to revert to it).