Making sure done method exists before calling it. Added runtrace, which dynmically imports and runs a given trace. Added example.sh that calls the runtrace script.