Fix new lines issues
Changed gettime to return seconds since epoch as char*