Documentation of the methods.
Few sanity checks.