Implemented evaluateScript

Closes #1
Replaces #31