improved table reading

Added ability to read incomplete tables.