Add hash calculation and dummy filename

And fix compile