Added command_prompt and historybuffer

Added all the source code and test code for command prompt and historybuffer