refactor throw out error when fail to init con
refactor remove extra structure
documentation fix wrong url