Added explanation of what experiment involves, reordered, indented & edited ifs and elifs to reduce unnecessary computations.

Added explanation of what experiment involves, reordered, indented & edited ifs and elifs to reduce unnecessary computations.