Added text extraction function
It isn't quite working yet; again the bit masking and reconstruction is wrong, but the skeleton is there. Just need to debug it.