std::abs
Removed possible division by 0
Added bug TODO