Adding instructions about persistent connections
Minor refactoring