Cleaned up main function a little
Cleaned up main function a little

armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol,armoredsoftware/protocol