Update main.cs

loads commands, responds to commands