Your probably solved the problem already, if not:
Line 30:
(folderLocation = arcpy.GetParameterAsText(0))
for what do you need this? at the moment you can delete it (except you want to do other stuff with it.)
In line 43:
arcpy.mapping.AddLayer(df, addLayer, position)
Instead of - position - use one of those : "TOP", "BOTTOM" or "AUTO_ARRANGE"
and delete line 33 OR simply watch out to use one of those as Input for the parameter
If you delete line 30, rearrange the the parameter order YYY = arcpy.GetParamterAsText(X) in the right way.