Transformed asserts to exceptions, improved docstrings, add mandate tooltip help