Seperated and used fnmatch to match extension.
Added copying of static files.