verifying media types function
renamed directories for epub output, new sanitize function