Tidied up the error stuff and got rid of some redundant code. Added a note about glyph bounding boxes