Added console arguments to Main and cleaned up unused methods.