Wrote insert function

Need to debug
Adding a way to add items and not just words, json format
Fixed bug. Forgot to pass in item