index check

--index ARG : check if ARG is .html file
diplay error message if it isn't