don't ever die in a library.

Throw exceptions instead, so applications can handle it
bugfixes when parsing docs

- handles documents without tables (create one)
- handles missing meta data
accept seconds for time formats
add helper function for generating functions

this function may be used to generate column references for formulas
from column numbers
accept table name references in formulas
add time style for seconds