Removed commented code and fixed misleading sign conversion.