add connection reliability improvements from @skyboy
fix formatting, and add sources jar