Fixed some headers, added function to get the last modified time