process_orders now take the number of orders to process as an argument instead of reading it itself. Adaptation for the RDP5 code to work. Added some debugging. Indent fixes.