added content type by extension for local storage
added head function to storage
working on preview functions