Removed unnecessary code now errors are automatically shaped and made
use of indexed getters
Removed unnecessary square root