Fixed swig issue and renamed files to .html.