Some minor bug fixes

now all the operations seem work properly,
now, all that's left to be done is the documentation.
some minor bug fixes

now all the operations seem to work properly,
only the documentation is left to be done.