Refactored the scala.utils package
Updated code formatting
Fixed missing import