Reads in from cmd

Both mains kept, original commented out