add throw if end of file hit before M02. fixes #1
check for invalid bounding box before building svg. fixes #2