Edit README.md to be more readable with GitHub Flavored Markdown, reorganized code so that main has less logic and clutter, created Connect function that re-attempts connection up to three times, added documentation to each function, renamed functions to conform to Go style.