Refactored "main.cpp"

Minor formatting changes.