improved readability of main and added spacing between methods