Merge pull request #4 from lukechampine/scripting

Scripting changes
smattering of bugfixes
Merge pull request #140 from DavidVorick/scriptIntegration

Script integration
silence debug output
more descriptive errors