Study of structural themodynamical and electronic properties of heusler alloys for thermoelectric and spintronic applications