Added main and fixed spacing

Added main method and fixed spacing on connect stuff