navigation works for command prompt
updates to command history navigation
updated variable names with better prefixes