Updated .gitignore and wrote working beta (needs error checking) of insert_middle function.