Finish1 to1 table, fixed some bugs, updated error messages.