Added check for line number for error reporting
Changed green color of success console log