1.you do not need temp1, temp2, temp3
2.temp5 is not generated
3. you do not need GraphicsArray
4. Why would you use ColorScaling->False and scale it yourself?
5. It is not a good idea to use the full range of Hue since Hus==Hue (Red) and you will notice that immediately when you see the legend
6. you didn't use the same coloring function for the function and the legend. why?
and makes the Legend not to appear (your specific problem): you typed ' rather than ` when calling packages, so the packages wouldn't load