Added some more comments and error handling for uncreated preview directory