Native screen reading is a lot faster than before.
Refactored the image reading parts of readscreen.c
Refactored the binary search stuff.
Added a makefile command to readscreen for convenience and added a script to convert raw files to pngs for debugging.
Refactored the code to find the coordinates of the top and left dots.
Added error checking and commented the two scary methods pretty thoroughly.
Raise an error for white pixels where a dot is expected. Also abstract out the screencap opening stuff from readscreen().