New main FEM module file

Created new file htfem.f90 to house the main FEM module