Fixed accidentally overwroting remove function with a prepend function

I crossed my commits, and accidentally placed my prepend function in the remove function I submitted a pull request when I re-created the request within the dev branch. If you compare to the original request, this is the correct code - not the one I submitted yesterday (that was for a l-list prepend function). Bone head move on my part when recreating the pull request. Appologies