added the code that will update the instruction table. untested as of yet.
changed the default values of the history file to be -1 and used 0 as no response