convert comments, add header, formatting, naming
add compiled version of outcome analysis code