Adds some more useful functions + some doc.