Move init function inside client object
Remove extra newline