Small fix.
dotNET Wrapper: Added the remaining function + implemented finalizer function.