Changed indexing behaviour to match numpy. Second argument to range in now optional. Added mathematical constants.