Fix #3 and #4

+ through option support
* fixed complex foreign key config
* some doc refreshing