Added close() to terminate connection and program;
Added spacing between Class definition and regular functions;