Removing err boolean in result object, splitting error line and msg
Created new file for utility functions