simplified row expression and added transaction to wrap each script.
added documentation for loader.