Split up main and test scripts, support use_strict

Close #5
v1.0.5