Added a few functions, which still need to be tested and documented.
Tested and documented previously added functions, as well as adding insertBefore.
Merging