Updated README with better build instructions and a more detailed description.
Made some stylistic changes, added tens of lines of comments and cleaned up the code. Reorganising the drawing routine also produced substantial performance gains!