Corrected switchToFrame()
Merge pull request #231 from roydude/v1-train

Corrected switchToFrame()