Fix indentation in README

Github-style markdown allows specification of language for synax
highlighting when using ``` gates rather than four-space indent. This
commit fixes a mix-up between the two.
Remove redundant process_task function, annotate

This commit adds comments at the beginning of each function and removes
a function that was found to be likely redundant.