[ADD] analyse: check for extension of file provided