made capture output smart; added configuration commands for output capture; added script property (flag) indicating when the output is truncated