repaired the print to the consule, by changing the memmove to a while loop, and also fixed input_to_history