Corrections and added more documentation on utils.jl