Updated docstrings and added some (currently untestest) methods to Math.