added documentation examples and changed a way to store output result files.