Error Log and gw_stop

Added the hash element gw_stop so that we can terminate the gw cacluations after a certain value.
This still needs some work however.

Also corrected the issue with the error logs.
Merge branch 'master' of github.com:charlesswartz/XES-Script