suppress html extension when extension is given in filename
tidy up
compile