Updated Main.c with input tokenization and non-blocking wait